#import <Foundation/Foundation.h>

@interface QBPMClient : NSObject {
	NSString *contextRoot;
	NSString *email;
	NSString *password;
	BOOL authorized;
}
@property(nonatomic, retain) NSString *contextRoot;
- (NSData *) loadDataFromURLForcingBasicAuth:(NSURL *) url;
- (BOOL) loadConfiguration;
- (NSMutableArray*) fetchWorkitems;
- (NSMutableArray*) fetchOfferedTasks;
- (void) addAuthorizationHeader:(NSMutableURLRequest*) request;
- (NSMutableArray*) parseJson:(NSString*) jsonString;
- (NSMutableArray*) fetchWorkitemsFromUrl:(NSString*) path;
- (BOOL) acceptWorkitem:(long) workitemId;
@end
